<template>
  <div class="finddetail">
    <MyNavbar path="-1"></MyNavbar>
    <div class="pad" :model="list">
      <h4>{{ list.title }}</h4>
      <div class="little">
        <span class="span1">2020.06.29</span>
        <span class="iconfont iconicon_liulanliang">{{ list.read }}</span>
        <span class="iconfont iconbtn_dianzan_small_nor">{{ list.star }}</span>
      </div>
      <p class="txt" v-html="list.content"></p>
    </div>
  </div>
</template>

<script>
import { articlesTechnicId } from '@/api/find.js'
export default {
  data () {
    return {
      id: this.$route.query.id,
      list: []
    }
  },
  created () {
    this.getData()
  },
  methods: {
    async getData () {
      const res = await articlesTechnicId(this.id)
      //   console.log(res)
      this.list = res.data
      this.$toast.loading({ message: '加载中' })
      this.$nextTick(() => {
        this.$toast.clear()
      })
    }
  }
}
</script>

<style lang="less" scoped>
.finddetail {
  .pad {
    padding-left: 30px;
  }
  h4 {
    font-weight: 500;
    font-size: 36px;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  .little {
    font-size: 24px;
    color: #ccc1c1;
    display: flex;
    margin-bottom: 40px;
    .span1 {
      flex: 6;
    }
    .iconfont {
      flex: 1;
      font-size: 12px;
    }
  }
  .txt {
    letter-spacing: 4px;
    font-size: 30px;
  }
}
</style>
